// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-8-30

#ifndef __SOCKLISTENER_H_COMMON_BASE__
#define __SOCKLISTENER_H_COMMON_BASE__

#pragma once

#include "sockbase.h"

//##ModelId=44C4B5F60128
class CJoySockListener : public CJoySockBase
{
protected:
    friend class CJoySocketTool;

	//##ModelId=44C4B5F60138
    HANDLE m_hListenThread;
	//##ModelId=44C4B5F60139
    virtual void OnAccept(CJoySockData* sockData);
public:
	//##ModelId=44C4B5F6013C
    CJoySockListener(void);
	//##ModelId=44C4B5F60148
    virtual ~CJoySockListener(void);

	//##ModelId=44C4B5F6014B
    bool Start(int nPort);
	//##ModelId=44C4B5F6014D
    void Stop();
};

#endif  // __SOCKLISTENER_H_COMMON_BASE__
